<?php
/**
 * Magento
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Academic Free License (AFL 3.0)
 * that is bundled with this package in the file LICENSE_AFL.txt.
 * It is also available through the world-wide-web at this URL:
 * http://opensource.org/licenses/afl-3.0.php
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to license@magentocommerce.com so we can send you a copy immediately.
 *
 * DISCLAIMER
 *
 * Do not edit or add to this file if you wish to upgrade Magento to newer
 * versions in the future. If you wish to customize Magento for your
 * needs please refer to http://www.magentocommerce.com for more information.
 *
 * @copyright   Copyright (c) 2014 X.commerce, Inc. (http://www.magentocommerce.com)
 * @license     http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
 */
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title><?php echo __('Reset a Password'); ?></title>
    <link rel="icon" href="<?php echo $this->getViewFileUrl('Magento_Theme::favicon.ico'); ?>" type="image/x-icon" />
    <link rel="shortcut icon" href="<?php echo $this->getViewFileUrl('Magento_Theme::favicon.ico'); ?>" type="image/x-icon" />
    <script type="text/javascript">
        var require = {
            "baseUrl": "<?php echo $this->getViewFileUrl('/') ?>",
            "paths": {
                "jquery/ui": "jquery/jquery-ui-1.9.2",
                "mage/components": "mage/backend/components"
            }
        };
    </script>

    <link rel="stylesheet" href="<?php echo $this->getViewFileUrl('mui/reset.css') ?>" media="all" />
    <link rel="stylesheet" href="<?php echo $this->getViewFileUrl('mui/base.css') ?>" media="all" />
    <link rel="stylesheet" href="<?php echo $this->getViewFileUrl('mui/elements.css') ?>" media="all" />
    <link rel="stylesheet" href="<?php echo $this->getViewFileUrl('mui/form.css') ?>" media="all" />
    <link rel="stylesheet" href="<?php echo $this->getViewFileUrl('css/admin.css') ?>" media="all" />
    <link rel="stylesheet" href="<?php echo $this->getViewFileUrl('css/pages.css') ?>" media="all" />
    <link rel="stylesheet" href="<?php echo $this->getViewFileUrl('mui/utils.css') ?>" media="all" />

    <script src="<?php echo $this->getViewFileUrl('prototype/prototype.js') ?>"></script>
    <script src="<?php echo $this->getViewFileUrl('scriptaculous/effects.js') ?>"></script>
    <script src="<?php echo $this->getViewFileUrl('mage/captcha.js') ?>"></script>

    <script src="<?php echo $this->getViewFileUrl('requirejs/require.js') ?>"></script>
    <script src="<?php echo $this->getViewFileUrl('jquery/jquery-1.8.2.js') ?>"></script>
    <script src="<?php echo $this->getViewFileUrl('mage/jquery-no-conflict.js') ?>"></script>
    <script src="<?php echo $this->getViewFileUrl('app-config.js') ?>"></script>

<body id="page-login" class="page-login page-resetpass">
    <div class="wrapper">
        <div class="wrapper-inner">
            <div class="form-inline form-login">
                <header class="header">
                    <div class="logo" title="<?php echo __('Magento Admin Panel') ?>"><span><?php echo __('Magento Admin Panel') ?></span></div>
                </header>
                <div id="messages">
                    <?php echo $this->getLayout()->getMessagesBlock()->getGroupedHtml(); ?>
                </div>
                <form method="post" action="<?php echo $this->getUrl('*/auth/resetpasswordpost', array('_query' => array('id' => $this->getUserId(), 'token' => $this->getResetPasswordLinkToken()))); ?>" id="reset-password-form">
                    <fieldset class="fieldset">
                        <legend class="legend"><span><?php echo __('Reset a Password'); ?></span></legend><br />
                        <input name="form_key" type="hidden" value="<?php echo $this->getFormKey(); ?>" />
                        <div class="field field-password">
                            <label class="label" for="password"><span><?php echo __('New Password'); ?></span></label>
                            <div class="control">
                                <input type="password" class="input-text required-entry validate-admin-password" name="password" id="password" placeholder="new password" />
                            </div>
                        </div>
                        <div class="field field-confirmation">
                            <label class="label" for="confirmation"><span><?php echo __('Confirm New Password'); ?></span></label>
                            <div class="control">
                                <input type="password" class="input-text required-entry validate-cpassword" name="confirmation" id="confirmation" placeholder="confirm new password" />
                            </div>
                        </div>
                        <div class="form-actions">
                            <div class="actions">
                                <button type="submit" title="<?php echo __('Reset Password'); ?>" class="action-reset primary"><span><?php echo __('Reset Password'); ?></span></button>
                            </div>
                            <div class="links">
                                <a class="action-back" href="<?php echo $this->getUrl('adminhtml', array('_nosecret' => true)) ?>"><?php echo __('Back to Login'); ?></a>
                            </div>
                        </div>
                    </fieldset>
                </form>
                <script type="text/javascript">
require([
    "jquery",
    "mage/backend/form",
    "mage/backend/validation"
], function(jQuery){

    jQuery('#reset-password-form').form().validation();
                
});
</script>
            </div>
        </div>
    </div>
    <footer class="footer">
        <div class="footer-content">
            <div class="footer-copyright"><?php echo $this->getChildHtml('copyright');?></div>
        </div>
    </footer>
</body>
</html>
